<?php
include('lock.php');

$sql = "select * from users where username='$login_session'";

$result=mysql_query($sql);
#$row=mysql_fetch_array($result);
#echo "Result" . $row[1];


while ($db_field = mysql_fetch_assoc($result)) {
$username = $db_field['username'];
$sex = $db_field['sex'];
$image = $db_field['image'];
$address = $db_field['address'];
}

mysql_close($db_handle);




?>

<html>
    <head>
        <title> User Profile </title>
    </head>
    <body>
	<img src="/infinity/img/infinity3.jpg" alt="Infinity" width="200" height="100"/> 
        <h1>User Profile Information</h1>
        <div id="layout_1">
        <div id="content" class=".">
        <form>
            <table align=left border="2">
                <tr>
                    <td>
                        <img src="<?php echo $image ?>" alt="<?php echo $username ?>"/>
                    </td>
                </tr>
            </table>
            <table border="2">
                <tr>
                    <th class="subr">User Name</th>
                    <td>
                        <div id="username" style="width: 200px; height: 20px"><?php echo $username ?></div>
                    </td>
                </tr>
                <tr>
                    <th class="subr">Sex</th>
                    <td>
                        <div id="sex" style="width: 200px; height: 20px"><?php echo $sex ?></div>
                    </td>
                </tr>
                <tr>
                    <th class="subr">Address</th>
                    <td>
                        <div id="loc_ID" style="width: 200px; height: 20px"><?php echo $address ?></div>
                    </td>
                </tr>
            </table>
        </form>
    </body>
    <tr>
    <th colspan="2">
        <font color="White"><a href="/infinity/welcome.php">Back to Welcome Page</a></font>
    </th>
</html>
